/**
 * Created by Administrator on 2015/12/29.
 */
angular.module('appItf.service',[])
  .service('appItfService',['$http','$q','$ionicLoading','$localstorage',function($http,$q,$ionicLoading,$localstorage) {

    //登录
    var login_resp = {};
    //获取订单汇总信息
    var OrderSum_Info={};
    //客户校验接口
    var validCust_resp = {};

    //号码查询
    var querySerialNumberList_resp = {};

    //号码校验
    var validSerialNumber2G_resp = {};

    //4G号码校验
    var validSerialNumber4G_resp ={};


    //发展人查询
    var queryDevelopList_resp = {};

    //套餐校验接口
    var validProduct_resp={};

    //根据产品类型查询产品列表
    var productInfoByType_resp={};

    //根据产品获取包接口
    var packageByPId_resp={};

    //根据包获取元素接口
    var elementByPkgId_resp={};

    //串口校验接口
    var validImei_resp={};

    //订单列表查询接口
    var queryOrderList_resp={};

    //查询产品
    var queryProductList_resp={};

    //查询订单类型/订单状态 类似这种参数的查询都用这个接口
    var queryStaticList_resp={};

   //营销业务查询
    var queryBusiness_resp={};

    //缴费查询
    var queryFeeInfo_resp={};

    //返档
    var searchUserInfoByPhone_resp={};

    //缴费
    var chargeFeeNormal_resp={};

    //手机号和SIM卡号互查
    var queryUserBySim_resp={};

    //4G确认返档
    var userDataReturnOk4G_resp={};

    //2G确认返档
    var userDataReturnOk2G_resp={};

    //查询部门子帐号余额
    var qtySysAcct_resp={};

    //4G客户校验接口 （是否是黑名单）
    var authenticate_resp={};

    //4G返档需要的接口，在确认返档之前
    var insertPsptInfo_resp={};

    //开户订单录入接口
    var createOrder4G_resp={};

    //4G获取白卡信息
    var WhiteSimInfo4G_resp={};
    //4G写卡数据成功提交
    var transmitCardOkThenToB4G_resp={};
    //4G正式提交
    var createUserSubmit4G_resp={};

    //2G开户预提交
    var createOrder2G_resp={};
    //2G获取白卡信息
    var SimcardInfo2G_resp={};
    //2G写卡成功通知
    var transmitCardOk2G_resp={};
    //2G开户正式提交
    var createUserSubmit2G_resp={};
    //2G订单完工接口
    var finishOrder2G_resp={};


    //短信验证码获取
    var generateSmsVerifyCode_resp={};
    //短信验证码校验
    var verifySmsVerifyCode_resp={};

    //版本更新
    var queryLatestVersion_resp={};

    //
    return {

      //登录
      get_login_resp: function () {
        return login_resp;
      },
      //获取订单汇总信息
      get_OrderSum_Info:function(){
        return OrderSum_Info;
      },
      //客户校验
      get_validCust_resp: function () {
        return validCust_resp;
      },
      //号码查询
      get_querySerialNumberList_resp: function () {
        return querySerialNumberList_resp;
      },
      //号码校验
      get_validSerialNumber2G_resp: function () {
        return validSerialNumber2G_resp;
      },
      //4G号码校验
      get_validSerialNumber4G_resp: function () {
        return validSerialNumber4G_resp;
      },

      //查询发展人
      get_queryDevelopList_resp: function () {
        return queryDevelopList_resp;
      },
      //套餐校验
      get_validProduct_resp: function () {
        return validProduct_resp;
      },
      //根据产品类型查询产品列表
      get_productInfoByType_resp: function () {
        return productInfoByType_resp;
      },
      //根据产品获取包接口
      get_packageByPId_resp: function () {
        return packageByPId_resp;
      },
      //根据包获取元素接口
      get_elementByPkgId_resp: function () {
        return elementByPkgId_resp;
      },
      //串口校验接口
      get_validImei_resp: function () {
        return validImei_resp;
      },
      //订单列表查询接口
      get_queryOrderList_resp: function () {
        return queryOrderList_resp;
      },
      //查询产品
      get_queryProductList_resp: function () {
        return queryProductList_resp;
      },
      //查询订单类型/订单状态 类似这种参数的查询都用这个接口
      get_queryStaticList_resp: function () {
        return queryStaticList_resp;
      },
      //缴费查询
      get_queryFeeInfo_resp: function () {
        return queryFeeInfo_resp;
      },
      //返档校验
      get_searchUserInfoByPhone_resp: function () {
        return searchUserInfoByPhone_resp;
      },
      //缴费
      get_chargeFeeNormal_resp: function () {
        return chargeFeeNormal_resp;
      },
      //SIM卡号和手机号互查
      get_queryUserBySim_resp: function () {
        return queryUserBySim_resp;
      },
      //4G确认返档
      get_userDataReturnOk4G_resp: function () {
        return userDataReturnOk4G_resp;
      },
      //2G确认返档
      get_userDataReturnOk2G_resp: function () {
        return userDataReturnOk2G_resp;
      },
      //查询部门子账户
      get_qtySysAcct_resp: function () {
        return qtySysAcct_resp;
      },
      //校验是否是黑名单
      get_authenticate_resp: function () {
        return authenticate_resp;
      },
      //4G返档需要的接口，在确认返档之前
      get_insertPsptInfo_resp: function () {
        return insertPsptInfo_resp;
      },
      //开户订单录入接口
      get_createOrder4G_resp: function () {
        return createOrder4G_resp;
      },
      //2G开户预提交
      get_createOrder2G_resp: function () {
        return createOrder2G_resp;
      },
      //2G获取白卡信息
      get_SimcardInfo2G_resp: function () {
        return SimcardInfo2G_resp;
      },
      //2G写卡成功通知
      get_transmitCardOk2G_resp: function () {
        return transmitCardOk2G_resp;
      },
      //2G开户正式提交
      get_createUserSubmit2G_resp: function ()
      {
        return createUserSubmit2G_resp;
      },
      //2G订单完工接口
      get_finishOrder2G_resp:function()
      {
        return finishOrder2G_resp;
      },
      //4G获取白卡信息
      get_WhiteSimInfo4G_resp:function()
      {
        return WhiteSimInfo4G_resp;
      },
      //4G写卡数据成功提交
      get_transmitCardOkThenToB4G_resp:function()
      {
        return transmitCardOkThenToB4G_resp;
      },
      //4G正式提交
      get_createUserSubmit4G_resp:function()
      {
        return createUserSubmit4G_resp;
      },
      //短信验证码获取
      get_generateSmsVerifyCode_resp:function()
      {
        return generateSmsVerifyCode_resp;
      },
      //短信验证码校验
      get_verifySmsVerifyCode_resp:function()
      {
        return verifySmsVerifyCode_resp;
      },
      //版本更新
      get_queryLatestVersion_resp:function()
      {
        return queryLatestVersion_resp;
      },
      //登录操作
       do_Login_req: function (params) {
       //console.log("登录:" + angular.toJson(params));
       var deferred = $q.defer();
       var obj = get_Login_Data(params);
       //var strUrl = "copserv/cas/login/" + params.username + "/" + params.userpwd;
       var strUrl = "copserv/cas/login";
       postData(strUrl, obj, login_resp, deferred);
       return deferred.promise;
       },
      //获取订单汇总信息
      do_getOrderSumInfo_req:function(){
        //console.log("获取订单汇总信息");
        var deferred = $q.defer();

        var obj = get_OrderSum_Info();
        var strUrl = "copserv/order/getOrderSumInfo";
        postData(strUrl, obj, OrderSum_Info, deferred);
        return deferred.promise;
      },
      //客户校验
      do_validCust_req: function (params) {
        //console.log("客户校验:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_validCust_Data(params);
        var strUrl = "copserv/right/validCust";
        postData(strUrl, obj, validCust_resp, deferred);
        return deferred.promise;
      },
      //号码查询
      do_querySerialNumberList_req: function (params) {
        //console.log("号码查询:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_querySerialNumberList_Data(params);
        var strUrl = "copserv/serialNumber/querySerialNumberList";
        postData(strUrl, obj, querySerialNumberList_resp, deferred);
        return deferred.promise;
      },
      //号码校验
      do_validSerialNumber2G_req: function (params) {
        //console.log("号码校验:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_validSerialNumber2G_Data(params);
        var strUrl = "copserv/serialNumber/validSerialNumber";
        postData(strUrl, obj, validSerialNumber2G_resp, deferred);
        return deferred.promise;
      },
      //4G号码校验
      do_validSerialNumber4G_req:function(params)
      {
        //console.log("4G号码校验:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_validSerialNumber4G_Data(params);
        var strUrl = "copserv/serialNumber/validSerialNumber";
        postData(strUrl, obj, validSerialNumber4G_resp, deferred);
        return deferred.promise;
      },
      //发展人查询
      do_queryDevelopList_req: function (params) {
        //console.log("发展人查询:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_queryDevelopList_Data(params);
        var strUrl = "copserv/develop/queryDevelopList";
        postData(strUrl, obj, queryDevelopList_resp, deferred);
        return deferred.promise;
      },
      //套餐校验
      do_validProduct_req:function(params)
      {
        //console.log("套餐校验:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_validProduct_Data(params);
        var strUrl = "copserv/product/validProduct";
        postData(strUrl, obj, validProduct_resp, deferred);
        return deferred.promise;
      },
      //根据产品类型查询产品列表
      do_productInfoByType_req:function(params)
      {
        //console.log("根据产品类型查询产品列表:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_productInfoByType_Data(params);
        var strUrl = "copserv/product/getProductInfoByType";
        postData(strUrl, obj, productInfoByType_resp, deferred);
        return deferred.promise;
      },
      //根据产品获取包接口
      do_packageByPId_req:function(params)
      {
        //console.log("根据产品获取包接口:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_packageByPId_Data(params);
        var strUrl = "copserv/product/getPackageByPId";
        postData(strUrl, obj, packageByPId_resp, deferred);
        return deferred.promise;
      },
      //根据包获取元素接口
      do_elementByPkgId_req:function(params)
      {
        //console.log("根据包获取元素接口:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_elementByPkgId_Data(params);
        var strUrl = "copserv/product/getElementByPkgId";
        postData(strUrl, obj, elementByPkgId_resp, deferred);
        return deferred.promise;
      },
      //串口校验
      do_validImei_req:function(params)
      {
        //console.log("串口校验:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_validImei_Data(params);
        var strUrl = "copserv/activity/validImei";
        postData(strUrl, obj, validImei_resp, deferred);
        return deferred.promise;
      },
      //订单列表查询
      do_queryOrderList_req:function(params)
      {
        //console.log("订单列表查询:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_queryOrderList_Data(params);
        var strUrl = "copserv/order/queryOrderList";
        postData(strUrl, obj, queryOrderList_resp, deferred);
        return deferred.promise;
      },
      //查询产品
      do_queryProductList_req:function(params)
      {
        //console.log("查询产品:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_queryProductList_Data(params);
        var strUrl = "product/queryProductList";
        postData(strUrl, obj, queryProductList_resp, deferred);
        return deferred.promise;
      },
      //查询订单类型/订单状态 类似这种参数的查询都用这个接口
      do_queryStaticList_req:function(params)
      {
       //console.log("查询订单类型/订单状态 类似这种参数的查询都用这个接口:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_queryStaticList_Data(params);
        var strUrl = "staticparam/queryStaticList";
        postData(strUrl, obj, queryStaticList_resp, deferred);
        return deferred.promise;
      },
      //营销业务推荐
      do_queryBusiness_req:function(params)
      {
        //console.log("营销业务推荐:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_queryBusiness_Data(params);
        var strUrl = "business/queryBusinessList";
        postData(strUrl, obj, queryBusiness_resp, deferred);
        return deferred.promise;
      },
      //缴费查询
      do_queryFeeInfo_req:function(params)
      {
        ///console.log("缴费查询:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_queryFeeInfo_Data(params);
        var strUrl = "copserv/payFee/queryFeeInfoNormal";
        postData(strUrl, obj, queryFeeInfo_resp, deferred);
        return deferred.promise;
      },
      //返档校验
      do_searchUserInfoByPhone_req:function(params)
      {
        //console.log("返档校验:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_searchUserInfoByPhone_Data(params);
        var strUrl = "copserv/userDataReturn/searchUserInfoByPhone";
        postData(strUrl, obj, searchUserInfoByPhone_resp, deferred);
        return deferred.promise;
      },
      //缴费
      do_chargeFeeNormal_req:function(params)
      {
        //console.log("缴费:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_chargeFeeNormal_Data(params);
        var strUrl = "copserv/payFee/chargeFeeNormalAuto";
        postData(strUrl, obj, chargeFeeNormal_resp, deferred);
        return deferred.promise;
      },
      //SIM卡号和手机号互查
      do_queryUserBySim_req:function(params)
      {
        //console.log("SIM卡号和手机号互查:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_queryUserBySim_Data(params);
        var strUrl = "copserv/queryserv/queryUserBySim";
        postData(strUrl, obj, queryUserBySim_resp, deferred);
        return deferred.promise;
      },
      //4G确认返档
      do_userDataReturnOk4G_rep:function(params)
      {
        //console.log("4G确认返档:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_userDataReturnOk4G_Data(params);
        var strUrl = "copserv/userDataReturn/userDataReturnOk";
        postData(strUrl, obj, userDataReturnOk4G_resp, deferred);
        return deferred.promise;
      },
      //2G确认返档
      do_userDataReturnOk2G_rep:function(params)
      {
        //console.log("2G确认返档:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_userDataReturnOk2G_Data(params);
        var strUrl = "copserv/userDataReturn/userDataReturnOk";
        postData(strUrl, obj, userDataReturnOk2G_resp, deferred);
        return deferred.promise;

      },
      //查询部门子账户
      do_qtySysAcct_rep:function(params)
      {
        //console.log("查询部门子账户:" + angular.toJson(params));
        var deferred = $q.defer();

        var obj = get_qtySysAcct_Data(params);
        var strUrl = "copserv/qtySysAcct/qtySysAcct";
        postData(strUrl, obj, qtySysAcct_resp, deferred);
        return deferred.promise;
      },
      //4G客户校验接口 （是否是黑名单）
      do_authenticate_req:function(params)
      {
        //console.log("4G客户校验接口 （是否是黑名单）:" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_authenticate_Data(params);
        var strUrl = "copserv/auth/authenticate";
        postData(strUrl, obj, authenticate_resp, deferred);
        return deferred.promise;
      },
      //4G返档需要的接口，在确认返档之前
      do_insertPsptInfo_req:function(params)
      {
        //console.log("4G返档需要的接口，在确认返档之前:" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_insertPsptInfo_Data(params);
        var strUrl = "copserv/custAuth/insertPsptInfo";
        postData(strUrl, obj, insertPsptInfo_resp, deferred);
        return deferred.promise;
      },
      //开户订单录入接口
      do_createOrder4G_req:function(params)
      {
        //console.log("4G返档需要的接口，在确认返档之前:" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_createOrder4G_Data(params);
        var strUrl = "copserv/order/createOrder";
        postData(strUrl, obj, createOrder4G_resp, deferred);
        return deferred.promise;
      },
      //2G开户预提交
      do_createOrder2G_req:function(params)
      {
        //console.log("2G开户预提交" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_createOrder2G_Data(params);
        var strUrl = "copserv/order/createOrder";
        postData(strUrl, obj, createOrder2G_resp, deferred);
        return deferred.promise;
      },
      //2G获取白卡信息
      do_SimcardInfo2G_req:function(params)
      {
        //console.log("2G获取白卡信息" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_SimcardInfo2G_Data(params);
        var strUrl = "copserv/simcard/getSimcardInfo";
        postData(strUrl, obj, SimcardInfo2G_resp, deferred);
        return deferred.promise;
      },
      //2G写卡成功通知
      do_transmitCardOk2G_req:function(params)
      {
        //console.log("2G写卡成功通知" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_transmitCardOk2G_Data(params);
        var strUrl = "copserv/simcard/transmitCardOk";
        postData(strUrl, obj, transmitCardOk2G_resp, deferred);
        return deferred.promise;
      },
      //2G开户正式提交
      do_createUserSubmit2G_req:function(params)
      {
        //console.log("2G开户正式提交" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_createUserSubmit2G_Data(params);
        var strUrl = "copserv/open/createUserSubmit";
        postData(strUrl, obj, createUserSubmit2G_resp, deferred);
        return deferred.promise;
      },
      //2G订单完工
      do_finishOrder2G_req:function(params)
      {
        //console.log("2G订单完工" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_finishOrder2G_Data(params);
        var strUrl = "copserv/order/finishOrder";
        postData(strUrl, obj, finishOrder2G_resp, deferred);
        return deferred.promise;
      },
      //4G获取白卡数据
      do_WhiteSimInfo4G_req:function(params)
      {
        //console.log("4G获取白卡数据" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_WhiteSimInfo4G_Data(params);
        var strUrl = "copserv/writecard/getWhiteSimInfo";
        postData(strUrl, obj, WhiteSimInfo4G_resp, deferred);
        return deferred.promise;
      },
      //4G写卡数据成功提交
      do_transmitCardOkThenToB4G_req:function(params)
      {
        //console.log("4G写卡数据成功提交" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_transmitCardOkThenToB4G_Data(params);
        var strUrl = "copserv/writecard/transmitCardOkThenToB";
        postData(strUrl, obj, transmitCardOkThenToB4G_resp, deferred);
        return deferred.promise;
      },
      //4G开户正式提交
      do_createUserSubmit4G_req:function(params)
      {
        //console.log("4G开户正式提交" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_createUserSubmit4G_Data(params);
        var strUrl = "copserv/open/createUserSubmit";
        postData(strUrl, obj, createUserSubmit4G_resp, deferred);
        return deferred.promise;
      },
      //短信验证码获取
      do_generateSmsVerifyCode_req:function(params)
      {
        //console.log("短信验证码获取" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_generateSmsVerifyCode_Data(params);
        var strUrl = "copserv/sms/generateSmsVerifyCode";
        postData(strUrl, obj, generateSmsVerifyCode_resp, deferred);
        return deferred.promise;
      },
      //短信验证码校验
      do_verifySmsVerifyCode_req:function(params)
      {
        //console.log("短信验证码校验" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_verifySmsVerifyCode_Data(params);
        var strUrl = "copserv/sms/verifySmsVerifyCode";
        postData(strUrl, obj, verifySmsVerifyCode_resp, deferred);
        return deferred.promise;
      },
      //版本更新
      do_queryLatestVersion_req:function(params)
      {
        //console.log("版本更新" + angular.toJson(params));
        var deferred = $q.defer();
        var obj = get_queryLatestVersion_Data(params);
        var strUrl = "version/queryLatestVersion";
        postData(strUrl, obj, queryLatestVersion_resp, deferred);
        return deferred.promise;
      }
    };

    //数据请求
    function postData(strUrl, requestObj, responseObj, deferred) {
      var strJson = angular.toJson(requestObj);
      //console.log(strJson);
      var myUrl = SERVERURL + strUrl;
      //console.log("AppItfService--请求链接：" + myUrl);

      $ionicLoading.show({
        //template: '拼命加载中，请耐心等候...'
        template: '<ion-spinner icon="ripple" class="spinner-assertive"></ion-spinner>'
      });

      var config = {
        timeout: 20000,
        headers: {'Content-Type': 'text/html; charset=UTF-8'},
        params: requestObj
      }

      $http.post(myUrl, {}, config)
        .success(function (data) {
          $ionicLoading.hide();
          angular.copy(data, responseObj);
          deferred.resolve(data);
         // console.log("登录请求success：" + angular.toJson(data));
        })
        .error(function (data) {
          $ionicLoading.hide();
          deferred.reject(data);
         // console.log("登录请求error：" + angular.toJson(data));
        });
    }

    //构造登录接口的参数
    function get_Login_Data(params) {
      var obj = {
        "staffId":params.staffId,
        "password":params.password,
        "randomNum":params.randomNum
      }
      return obj;
    }
    //构造获取订单汇总信息
    function get_OrderSum_Info(){
      var obj={
      "_LOGIN_PARAM": $localstorage.get("_LOGIN_PARAM"),
      "staffId":$localstorage.get("STAFF_ID")
    }
      return obj;
    }
    //构造客户校验接口的参数
    function get_validCust_Data(params) {
      var obj = {
       /* "_GRANT_TICKET": params._GRANT_TICKET,*/
        "_LOGIN_PARAM": $localstorage.get("_LOGIN_PARAM"),
        "sysCode": params.sysCode, //系统编码 CBS 、BSS 、ESS ，必填
        "psptType": params.psptType, // 证件类型，必选
        "brandCode": params.brandCode,  // 产品品牌，必选
        "productTypeCode": params.productTypeCode, // 产品类型编码，必选
        "psptId": params.psptId,  // 证件号码，必选
        "netTypeCode": params.netTypeCode, // 产品网别，必选
        "productId": params.productId, // 产品编码，必选
        "eparchyCode": $localstorage.get("EPARCHY_CODE") // 地市编码，必选
      }
      return obj;
    }

    //构造号码查询接口的参数
    function get_querySerialNumberList_Data(params) {
      var obj = {
        "_GRANT_TICKET": params._GRANT_TICKET,
        "_LOGIN_PARAM": $localstorage.get("_LOGIN_PARAM"),
        "sysCode": params.sysCode,//系统编码 CBS 、BSS 、ESS ，必填
        "netTypeCode": !params.netTypeCode?"":params.netTypeCode, // 业务类型，必选
        "serialNumber": params.serialNumber,// 号码，可选
        "hwxh": params.hwxh,// 是否号尾选号，可选
        "lhType": "1", // 靓号类型，可选
        "snPrefix": params.snPrefix,// 号码前缀，可选
        "snPostfix": params.snPostfix,// 号码后缀，可选
        "minDeposit": params.minDeposit,// 最小预存，必选
        "maxDeposit": params.maxDeposit,// 最大预存，必选
        "currPage": params.currPage,
        "minDeposit":"0",
        "maxDeposit":"10000"
      }
      return obj;
    }

    //构造号码校验接口的参数
    function get_validSerialNumber2G_Data(params) {
      var obj = {
        "_LOGIN_PARAM": $localstorage.get("_LOGIN_PARAM"),
        "sysCode": params.sysCode,//系统编码 CBS 、BSS 、ESS ，必填
        "resourcesType":"02",
        "resourcesCode": params.resourcesCode // 号码，必选
      }
      return obj;
    }
    //4G号码校验
    function get_validSerialNumber4G_Data(params)
    {
      var obj = {
        "sysCode": params.sysCode,//系统编码 CBS 、BSS 、ESS ，必填
        "netTypeCode":"50",
        "serialNumber": params.serialNumber, // 号码，必选
        "_LOGIN_PARAM": $localstorage.get("_LOGIN_PARAM"),
      }
      return obj;
    }
    //构造发展人查询接口的参数
    function get_queryDevelopList_Data(params)
    {
      var obj={
        "_LOGIN_PARAM": $localstorage.get("_LOGIN_PARAM"),
        "sysCode" : params.sysCode,//系统编码 CBS 、BSS 、ESS ，必填
        "provinceId":params.provinceId, // 省份代码，必选
        "eparchyCode":$localstorage.get("EPARCHY_CODE"), // 总部地市编码，必选，
        "cucDepartCode":$localstorage.get("CUC_DEPART_CODE"),// 总部部门编码，必选
        "channelCode":params.channelCode,// 渠道编码，可选
        "channelName":$localstorage.get("DEPART_NAME"),// 渠道名称，可选
        "developName":params.developName,// 发展人名称，可选
        "developSerialNumber":params.developSerialNumber,// 发展人手机号码，可选
        "developCode":params.developCode,// 发展人编码，可选
        "RowCount":params.RowCount,// 每页条数，必选,
        "Page":params.Page// 第几页，必选
        }
      return obj;
    }
    //构造套餐校验接口参数
    function get_validProduct_Data(params)
    {
      var obj={
        "_GRANT_TICKET":params._GRANT_TICKET,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM"),
        "sysCode":params.sysCode,//系统编码 CBS 、BSS 、ESS ，必填
        "netTypeCode":params.netTypeCode, // 网别，必选
        "serialNumber":params.serialNumber, // 号码，必选
        "productId":params.productId,//套餐ID，必选
        "productName":params.productName, //4G全国套餐-76元套餐 //套餐名称，必选。必须与cBSS套餐名称一致
        "lowCost":params.lowCost//最低消费，必选。从号码校验接口获取
      }
      return obj;
    }
    //构造根据产品类型查询产品列表接口参数
    function get_productInfoByType_Data(params)
    {
      var obj={
        "_GRANT_TICKET":params._GRANT_TICKET,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM"),
        "sysCode":params.sysCode,//系统编码 CBS 、BSS 、ESS ，必填
        "root":params.root,//根类型，必选，查询营销活动时填SALE
        "productTypeCode":params.productTypeCode, // 产品类型编码，必选，查询活动时填写活动类型
        "productId":params.productId, // 基本产品ID，可选，查询活动时必填
        "assureType":params.assureType,// 担保类型，可选，查询活动时必填，传固定值4即可
        "deviceType":params.deviceType,  // 设备类型，可选，终端的合约必填
        "deviceBrand":params.deviceBrand,  // 设备品牌，可选，终端的合约必填
        "deviceNumber":params.deviceNumber,  // 机型编码，可选，终端的合约必填
        "serialNumber":params.serialNumber,  // 手机号码，可选，终端的合约必填

        }
      return obj;
    }
    //构造根据产品获取包接口参数
    function get_packageByPId_Data(params)
    {
      var obj={
        "_GRANT_TICKET":params._GRANT_TICKET,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM"),
        "sysCode":params.sysCode,//系统编码 CBS 、BSS 、ESS ，必填
        "productId":params.productId, // 基本产品ID，必选
        "modifyTag":params.modifyTag// 整合标记，必选，传0即可
      }
      return obj;
    }
    //根据包获取元素接口参数
    function get_elementByPkgId_Data(params)
    {
      var obj={
        "_GRANT_TICKET":params._GRANT_TICKET,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM"),
        "sysCode":params.sysCode,//系统编码 CBS 、BSS 、ESS ，必填
        "productId":params.productId, // 产品ID，必选
        "packageId":params.packageId,//包Id ，必选
        "prodModifyTag":params.prodModifyTag// 传固定值0，必选

        }
      return obj;
    }
    //串口校验接口参数
    function get_validImei_Data(params)
    {
      var obj={
        "_GRANT_TICKET":params._GRANT_TICKET,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM"),
        "sysCode":params.sysCode,//系统编码 CBS 、BSS 、ESS ，必填
        "imei":params.imei, // 串号，必选
        "terminalType":params.terminalType, // 终端类型，非必选
        "dPackageType":params.dPackageType, // 套餐包，非必选
        "selectTypeStr":params.selectTypeStr  // 查询类型，非必选
      }
      return obj;
    }
    //订单列表查询接口参数
    function get_queryOrderList_Data(params)
    {
      var obj={
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM"),
        "orderId":params.orderId,//订单编码，可选
        "orderType":params.orderType,//订单类型，固定传值01：开户，必选
        "orderSource":params.orderSource,//订单来源，01：沃易登；02：移动助销；，必选
        "orderStatus":params.orderStatus,//订单状态，可选
        "custName":params.custName,//开户客户姓名，可选
        "serialNumber":params.serialNumber,//开户号码，可选
        "createBeginTime":params.createBeginTime,//订单创建开始时间
        "createEndTime":params.createEndTime,//订单创建结束时间
        "staffId":$localstorage.get("STAFF_ID"),//员工工号，必传
        "departId":$localstorage.get("DEPART_ID"),//部门ID，可选
        "departTag":params.departTag,//是否查部门下多有订单标记，可选
        "rows":params.rows,//每页返回行数
        "page":params.page//第几页
        }
      return obj;
    }
    //查询产品接口参数
    function get_queryProductList_Data(params)
    {
      var obj={
        "prodSysType":params.prodSysType
      };
      return obj;
    }

    //查询订单类型/订单状态 类似这种参数的查询都用这个接口
    function get_queryStaticList_Data(params)
    {
      var obj={
        "typeId":params.typeId
      };
      return obj;
    }
    //营销业务推荐
    function get_queryBusiness_Data(params)
    {
      var obj={
        "serialNumber":params.serialNumber,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //缴费查询
    function get_queryFeeInfo_Data(params)
    {
      var obj={
        "serialNumber":params.serialNumber,
        //"netTypeCode":params.netTypeCode,
        //"sysCode":params.sysCode,
        "isAgent":params.isAgent,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //返档校验
    function get_searchUserInfoByPhone_Data(params)
    {
      var obj={
        "mobilePhone":params.mobilePhone,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //缴费
    function get_chargeFeeNormal_Data(params)
    {
      var obj={
        "serialNumber":params.serialNumber,
        "tradeFee":params.tradeFee,
        "custName":params.custName,//潘帅(后付费) //查询返回值
        "spayFee":params.spayFee, //265.11//查询返回值
        "sysCode":params.sysCode,//CBS//查询返回值
        "netTypeCode":params.netTypeCode,//50//查询返回值
        "userinfoback_SERVICE_CLASS_CODE":params.userinfoback_SERVICE_CLASS_CODE,//查询返回值
        "userinfoback_PREPAY_TAG":params.userinfoback_PREPAY_TAG,//查询返回值
        "userinfoback_PRODUCT_ID":params.userinfoback_PRODUCT_ID,//查询返回值
        "ORDER_SOURCE":"03",
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //SIM卡号和手机号互查
    function get_queryUserBySim_Data(params)
    {
      var obj={
        "QryType":params.QryType,  //查询类别，1- 根据SIM查号码，2 - 根据号码查SIM，必填
        "QryCode":params.QryCode, //查询类别为SIM时，该参数为号码，查询类别为号码时，该参数为SIM，必填
        "IsPre":params.IsPre, //是否为预配号码。0已开卡（返档使用）；1预配卡（开卡使用），必填
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //4G确认返档
    function get_userDataReturnOk4G_Data(params)
    {
      var obj={
        "BASIC_CREDIT_VALUE": params.BASIC_CREDIT_VALUE,
        "CREDIT_CLASS": params.CREDIT_CLASS,
        "CUST_STATE": params.CUST_STATE,
        "CUST_ID": params.CUST_ID,
        "OPEN_LIMIT": params.OPEN_LIMIT,
        "CUST_NAME": params.CUST_NAME,                        //从二代证读取
        "PSPT_TYPE_CODE": params.PSPT_TYPE_CODE,
        "PSPT_ID": params.PSPT_ID,              //从二代证读取出来的证件号码
        "SEX": params.SEX,
        "PSPT_END_DATE": params.PSPT_END_DATE,
        "PSPT_ADDR":params.PSPT_ADDR,
        "HOME_ADDRESS": params.HOME_ADDRESS,
        "PHONE": params.PHONE,
        "POST_ADDRESS": params.POST_ADDRESS,
        "POST_CODE": params.POST_CODE,
        "CONTACT": params.CONTACT,
        "CONTACT_PHONE": params.CONTACT_PHONE,
        "CONTACT_TYPE_CODE": params.CONTACT_TYPE_CODE,
        "WORK_NAME": params.WORK_NAME,
        "WORK_PHONE": params.WORK_PHONE,
        "WORK_ADDRESS": params.WORK_ADDRESS,
        "JOB_TYPE_CODE": params.JOB_TYPE_CODE,
        "JOB": params.JOB,
        "EMAIL": params.EMAIL,
        "FAX_NBR": params.FAX_NBR,
        "CUST_TAG": params.CUST_TAG,
        "TRADE_ID": params.TRADE_ID,//           从返回TRADEID字段取值
        "ORDER_TYPE": params.ORDER_TYPE,
        "X_TAG": params.X_TAG,
        "USER_ID":params.USER_ID,
        "SERIAL_NUMBER_NO": params.SERIAL_NUMBER_NO,
        "ACCT_ID": params.ACCT_ID,
        "ACCEPT_DATE": params.ACCEPT_DATE,
        "TRADE_CITY_CODE": params.TRADE_CITY_CODE,
        "CITY_CODE":params.CITY_CODE,
        "NET_TYPE_CODE": params.NET_TYPE_CODE,
        "CANCEL_TAG": params.CANCEL_TAG,
        "IN_MODE_CODE": params.IN_MODE_CODE,
        "PRODUCT_ID": params.PRODUCT_ID,
        "BRAND_CODE":params.BRAND_CODE,
        "GROUPMARK": params.GROUPMARK,
        "CUST_ID_FOR_GROUP": params.CUST_ID_FOR_GROUP,
        "ORDER_SOURCE":"03",
        "mobilePhone":params.MobilePhone,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //2G确认返档
    function get_userDataReturnOk2G_Data(params)
    {
      var obj={
      "StatusChgTime":params.StatusChgTime,
      "ReleOfficeID":params.ReleOfficeID,
      "OrgType":params.OrgType,
      "OrgLeagalRep":params.OrgLeagalRep,
      "OrgID":params.OrgID,
      "NativePlace":params.NativePlace,
      "MaritalStatus":params.MaritalStatus,
      "IndividualBrandID":params.IndividualBrandID,
      "Hobby":params.Hobby,
      "DevChnlID":params.DevChnlID,
      "DefaultLan":params.DefaultLan,
      "CustStatus":params.CustStatus,
      "CustomerZip":params.CustomerZip,
      "CustomerType":params.CustomerType,
      "CustomerSex":params.CustomerSex,
      "CustomerOrga":params.CustomerOrga,
      "CustomerOccp":params.CustomerOccp,
      "userName":params.userName,
      "CustomerLoc":params.CustomerLoc,
      "CustomerID":params.CustomerID,
      "CustomerEmail":params.CustomerEmail,
      "CustomerBirth":params.CustomerBirth,
      "CustomerAddr":params.CustomerAddr,
      "CustLoc":params.CustLoc,
      "CorpBrandID":params.CorpBrandID,
      "ContactZip":params.ContactZip,
      "ContactPhone":params.ContactPhone,
      "ContactPerson":params.ContactPerson,
      "ContactEmail":params.ContactEmail,
      "ContactAddr":params.ContactAddr,
      "CertType":"02"/*params.CertType*/,
      "IdNum":params.IdNum,
      "CertExpireDate":params.CertExpireDate,
      "userAddress":params.userAddress,
        "ORDER_SOURCE":"03",
       "mobilePhone":params.mobilePhone,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //确认部门子账户
    function get_qtySysAcct_Data(params)
    {
      var obj={
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //4G客户校验接口 （是否是黑名单）
    function get_authenticate_Data(params)
    {
      var obj={
        "psptId":params.psptId,
        "sysCode":params.sysCode,
        "eparchyCode":$localstorage.get("EPARCHY_CODE"), // 总部地市编码，必选，
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //4G返档需要的接口，在确认返档之前
    function get_insertPsptInfo_Data(params)
    {
      var obj={
        "Name": params.Name,
        "Sex":params.Sex,
        "Nation":params.Nation,
        "CheckType": params.CheckType,
        "folkCode": params.folkCode,
        "Born": params.Born,
        "Address": params.Address,
        "CardNo": params.CardNo,
        "Police": params.Police,
        "ActivityLFrom":params.ActivityLFrom,
        "ActivityLTo": params.ActivityLTo,
        "CardReaderId": params.CardReaderId,
        "PhotoBuffer":params.PhotoBuffer,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //开户订单录入接口
    function get_createOrder4G_Data(params)
    {
      var obj={
        "ACTIVITY_NAME":params.ACTIVITY_NAME,
        "DEVELOPER_NAME":params.DEVELOPER_NAME,
        "CHANNEL_NAME":params.CHANNEL_NAME,
        "prodType":params.prodType,
        "PRODUCT_ELE_GROUP":params.PRODUCT_ELE_GROUP,
        //"PRODUCT_ELE_GROUP":[{
        //  "productId" : "89000100",
        //  "packageId" : "51000106",
        //  "elementName" : "预存120元120元分12月返还赠送费用240元分12月到账",
        //  "elementId" : "20000348",
        //  "startDate" : "2016-02-01 00:00:00",
        //  "endDate" : "2017-01-31 23:59:59",
        //  "elementTypeCode" : "D"
        //}],
        "ACTIVITY_DETAIL":params.ACTIVITY_DETAIL,
        "PSPT_START_DATE":params.PSPT_START_DATE,
        "ACTIVITY_TYPE":params.ACTIVITY_TYPE,
        "feemodec":params.feemodec,
        "DEVELOPER_CODE":params.DEVELOPER_CODE,
        "PRODUCT_GROUP": params.PRODUCT_GROUP,
        "SN_INFO":params.SN_INFO,
        "LH_TYPE":params.LH_TYPE,//靓号类型 默认1
        "PSPT_END_DATE":params.PSPT_END_DATE,
        "YC_TYPE":params.YC_TYPE,//预存档次，默认0
        "CUST_NAME":params.CUST_NAME,
        "IS_JOINACTIVITY":params.IS_JOINACTIVITY,//是否参加活动
        "PSPT_ORGAN":params.PSPT_ORGAN,
        "BRAND_CODE":params.BRAND_CODE,
        "ORDER_SOURCE":params.ORDER_SOURCE,//app是03,订单来源
        "PSPT_TYPE_CODE":params.PSPT_TYPE_CODE,
        "PRODUCT_ID":params.PRODUCT_ID,
        "PRODUCT_NAME":params.PRODUCT_NAME,
        "SERIAL_NUMBER":params.SERIAL_NUMBER,
        "PSPT_TYPE_NAME":params.PSPT_TYPE_NAME,
        "CREATE_STAFF_ID":$localstorage.get("STAFF_ID"),
        "ACTIVITY_ID":params.ACTIVITY_ID,
        "CONTACT_PHONE":params.CONTACT_PHONE,
        "PSPT_ID":params.PSPT_ID,
        "CONTACT_ADDRESS":params.CONTACT_ADDRESS,
        "SEX":params.SEX,
        "CONTACT_PERSON":params.CONTACT_PERSON,
        "BIRTHDAY":params.BIRTHDAY,
        "ORDER_TYPE":params.ORDER_TYPE,
        "CARD_TYPE":params.CARD_TYPE,
        "PSPT_ADDR":params.PSPT_ADDR,
        "PRODUCT_INFO":params.PRODUCT_INFO,
     /*   {
          "productMode" :params.PRODUCT_INFO.productMode,
          "productname" :params.PRODUCT_INFO.productname,
          "syscode" : params.PRODUCT_INFO.syscode,
          "mustactivity" :params.PRODUCT_INFO.mustactivity,
          "subType" :params.PRODUCT_INFO.subType,
          "brandcode" :params.PRODUCT_INFO.brandcode,
          "price" : params.PRODUCT_INFO.price,
          "traffic" : params.PRODUCT_INFO.traffic,
          "message" :params.PRODUCT_INFO.message,
          "eProductId" :params.PRODUCT_INFO.eProductId,
          "call" :params.PRODUCT_INFO.call,
          "productId" :params.PRODUCT_INFO.productId,
          "productExplain" :params.PRODUCT_INFO.productExplain,
          "endDate" :params.PRODUCT_INFO.endDate,
          "nettypecode" :params.PRODUCT_INFO.nettypecode,
          "producttypecode" :params.PRODUCT_INFO.producttypecode,
          "startDate" : params.PRODUCT_INFO.startDate
        },*/
        "CHANNEL_CODE":params.CHANNEL_CODE,
        "isJoinActivity":params.isJoinActivity,//是否存在活动
        "SYS_CODE":params.SYS_CODE,
        "NATION":params.NATION,
        "FEE_MODE":params.FEE_MODE,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //2G开户订单录入接口
    function get_createOrder2G_Data(params)
    {
      var obj={
        "developSerialNumber":params.developSerialNumber,
        "SN_INFO":params.SN_INFO,
        "CHANNEL_NAME":params.CHANNEL_NAME,
        "DEVELOPER_NAME":params.DEVELOPER_NAME,
        "prodType":params.prodType,
        "PSPT_START_DATE":params.PSPT_START_DATE,
        "DEVELOPER_CODE":params.DEVELOPER_CODE,
        "PSPT_END_DATE" :params.PSPT_END_DATE,
        "CUST_NAME" :params.CUST_NAME,
        "PSPT_ORGAN" :params.PSPT_ORGAN,
        "BRAND_CODE" :params.BRAND_CODE,
        "SIM_CARD_NO":params.SIM_CARD_NO,
        "PSPT_TYPE_CODE" :params.PSPT_TYPE_CODE,
        "PRODUCT_ID":params.PRODUCT_ID,
        "PRODUCT_NAME" :params.PRODUCT_NAME,
        "SERIAL_NUMBER" :params.SERIAL_NUMBER,
        "phoneRadio" :params.phoneRadio,
        "PSPT_TYPE_NAME" :params.PSPT_TYPE_NAME,
        "pagename" :params.pagename,
        "CONTACT_PHONE":params.CONTACT_PHONE,
        "PSPT_ID" :params.PSPT_ID,
        "CONTACT_ADDRESS" :params.CONTACT_ADDRESS,
        "SEX":params.SEX,
        "CONTACT_PERSON" :params.CONTACT_PERSON,
        "BIRTHDAY" :params.BIRTHDAY,
        "CARD_TYPE" :params.CARD_TYPE,
        "PSPT_ADDR" :params.PSPT_ADDR,
        "CHANNEL_CODE" :params.CHANNEL_CODE,
        "SYS_CODE":params.SYS_CODE,
        "NATION":params.NATION,
        "eventname" :params.eventname,
        "ORDER_TYPE":params.ORDER_TYPE,
        "ORDER_SOURCE": params.ORDER_SOURCE,//app是03,订单来源
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }

    //2G获取白卡信息
    function get_SimcardInfo2G_Data(params)
    {
      var obj={
        "PREPAY_TAG": params.PREPAY_TAG,//01,//非必填，默认
        "CUST_NAME": params.CUST_NAME,//郭雷,//客户姓名
        "BUSI_TYPE":params.BUSI_TYPE,//22,//业务类型
        "PRODUCT_ID": params.PRODUCT_ID,//53354873,//套餐编号
        "SERIAL_NUMBER": params.SERIAL_NUMBER,//15527355454,//手机号码
        "TRADE_ID": params.TRADE_ID,//2716012315880855,//预提交返回的省份订单编号
        "SIM_CARD": params.SIM_CARD,//8986011587103672888,//sim卡号
        "sysCode": params.sysCode,//BSS,//系统编码
        "PSPT_ID": params.PSPT_ID,//420323198810083131//身份证编号
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //写卡成功通知
    function get_transmitCardOk2G_Data(params)
    {
      var obj={
        "SERIAL_NUMBER":params.SERIAL_NUMBER,//15527355454,//手机号码
        "procid":params.procid,//2016012317220107755422,//获取白卡信息返回的流水号
        "imsi":params.imsi,//460017262405115,//获取白卡信息返回的imsi
        "simCardNo": params.simCardNo,//8986011587103672888,//sim 卡号
        "sysCode":params.sysCode,//BSS//系统编码
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //2G正式提交
    function get_createUserSubmit2G_Data(params)
    {
      var obj=
      {
        "ECS_ORDER_ID":params.ECS_ORDER_ID,// 7102301161000053,//总部订单编号
        "sysCode":params.sysCode,//BSS,//系统编号
        "PROV_ORDER_ID":params. PROV_ORDER_ID,//2716012315880855//预提交完成返回的省份订单编号
        "ORDER_ID":params.ORDER_ID,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //2G订单完工
    function get_finishOrder2G_Data(params)
    {
      var obj=
      {
        "ORDER_ID":params.ORDER_ID,// 7102301161000053,//总部订单编号
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //4G获取白卡信息
    function get_WhiteSimInfo4G_Data(params)
    {
      var obj=
      {
        "sysCode":params.sysCode,
        "SERIAL_NUMBER":params.SERIAL_NUMBER,             // 手机号码
        "SIM_CARD_NO":params.SIM_CARD_NO,               // sim卡号
        "TRADE_TYPE_CODE":params.TRADE_TYPE_CODE,         // 交易编码，默认写卡tradeType
        "PRODUCT_ID":params.PRODUCT_ID,               // 产品编码
        "PRE_TAG":params.PRE_TAG,
        "BRAND_CODE":params.BRAND_CODE,                // 品牌编码
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }
    //4G写卡数据成功提交
    function get_transmitCardOkThenToB4G_Data(params)
    {
      var obj={
      "simCardNo": params.simCardNo,     // sim卡号
      "imsi":params.imsi,           // 串号
      "procid":params. procid,        // 业务流水
      "sysCode":params.sysCode,
      "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }

    //4G开户正式提交
    function get_createUserSubmit4G_Data(params)
    {
      var obj={
        "ORDER_ID":  params.ORDER_ID,          // 订单编号
        "SERIAL_NUMBER":params.SERIAL_NUMBER,       // 手机号码
        "SIM_CARD_NO":params.SIM_CARD_NO,         // sim卡号" +
        "IMSI":params. IMSI,               // 串号
        "RES_KIND_CODE":params. RES_KIND_CODE,      // 卡类型
        "CAPACITY_TYPE_CODE":params. CAPACITY_TYPE_CODE, // 卡容量
        "PROC_ID":params.PROC_ID,             // 业务流水
        "CARD_DATA":params.CARD_DATA,           // 白卡数据
        "sysCode":params.sysCode,
        "_LOGIN_PARAM":$localstorage.get("_LOGIN_PARAM")
      }
      return obj;
    }

    //短信验证码获取
    function get_generateSmsVerifyCode_Data(params)
    {
      var obj={
        "staffId":params.staffId
      }
      return obj;
    }
    //短信验证码校验
    function get_verifySmsVerifyCode_Data(params) {
      var obj={
        "staffId":params.staffId,// 员工编号
        "randomNum":params.randomNum// 短信验证码
      }
      return obj;
    }
    //版本更新
    function get_queryLatestVersion_Data(params)
    {
      var obj={
        "os":params.os,// 系统平台  //android   ios
      }
      return obj;
    }
  }]);
